<?	
	include_once("identificador.php");

	function insertAlumno($dbh, $alumno){
        $sql = "INSERT INTO Alumno (idAlumno, nombre, apellidos, email, password) VALUES (:idAlumno, :nombre, :apellidos, :email, :password)";
        
        $stmt = $dbh->prepare($sql);
        
        $stmt->bindParam(':idAlumno', getId());
        $stmt->bindParam(':nombre', $alumno->nombre);
        $stmt->bindParam(':apellidos', $alumno->apellidos);
		$stmt->bindParam(':email', $alumno->email);
		$stmt->bindParam(':password', $alumno->password);
        
        $stmt->execute();
        
        return $stmt;
	}
	
	function deleteTitulacion($dbh, $idAlumno){
		$sql = "DELETE FROM Alumno WHERE idAlumno = :idAlumno";
		$stmt = $dbh->prepare($sql);
        
        $stmt->bindParam(':idAlumno', $idAlumno);
        
        $stmt->execute();
        
        return $stmt;
	}

?>